-- GENERATED SPELL FOR [Warosh] --


function spell0_10799(pUnit, Event) --@Warosh\'s Transform,Self--
pUnit:FullCastSpellOnTarget(16801,pUnit)
pUnit:RegisterEvent('Sorts_10799', 1000, 1)
end

function Sorts_10799(pUnit, Event)
local choix_sorts_10799 = math.random(0, 0)
if choix_sorts_10799 == 0 then
pUnit:RegisterEvent('spell0_10799', 1, 1)
end
end

function mob10799_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_10799', math.random(1500, 3000), 1)
end

function mob10799_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob10799_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob10799_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(10799, 1, 'mob10799_Action')
RegisterUnitEvent(10799, 2, 'mob10799_Leave')
RegisterUnitEvent(10799, 3, 'mob10799_Kill')
RegisterUnitEvent(10799, 4, 'mob10799_Die')
